﻿using System;
using System.Collections.Generic;
using System.Web;

namespace NFinal.Validation
{
    public class html5Attribute
    {
    }
    [AttributeUsage(AttributeTargets.Parameter)]
    public class typeAttribute : Attribute
    {
        public typeAttribute(type t)
        { }
    }
    public enum type
    {
        text,
        email,
        url,
        number,
        range,
        date,
        month,
        week,
        time,
        datetime,
        datetime_local,
        search,
        color
    }
    [AttributeUsage(AttributeTargets.Parameter)]
    public class maxLengthAttribute:Attribute
    {
        public maxLengthAttribute(int len)
        { }
    }
    [AttributeUsage(AttributeTargets.Parameter)]
    public class minLengthAttribute:Attribute
    {
        public minLengthAttribute(int len)
        { }
    }
    [AttributeUsage(AttributeTargets.Parameter)]
    public class maxAttribute:Attribute
    {
        public maxAttribute(double val)
        { }
    }
    [AttributeUsage(AttributeTargets.Parameter)]
    public class minAttribute:Attribute
    {
        public minAttribute(double val)
        { }
    }
    [AttributeUsage(AttributeTargets.Parameter)]
    public class stepAttribute:Attribute
    {
        public stepAttribute(double val)
        { }
    }
    [AttributeUsage(AttributeTargets.Parameter)]
    public class placeholderAttribute:Attribute
    {
        public placeholderAttribute(string msg)
        { }
    }
    [AttributeUsage(AttributeTargets.Parameter)]
    public class autocompleteAttribute : Attribute
    {
        public autocompleteAttribute(autocomplete auto)
        { 
        }
    }
    public enum autocomplete
    {
        on,
        off,
        unspecified
    }
    [AttributeUsage(AttributeTargets.Parameter)]
    public class requiredAttribute : Attribute
    { }
    [AttributeUsage(AttributeTargets.Parameter)]
    public class patternAttribute:Attribute
    {
        public patternAttribute(string val)
        { }
    }
    [AttributeUsage(AttributeTargets.Parameter)]
    public class novalidateAttribute:Attribute
    { 
        
    }
}